﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NeurOthello.NNetwork
{
    class Sigmoid
    {
        static public double Sig(double value)
        {
            return 1 / (1 + Math.Exp(-value));
        }

        static public double SigmoidPrim(double value)
        {
            return Sig(value) * (1 - Sig(value));
        }

        static public double SigPrim(double Gvalue)
        {
            return Gvalue * (1 - Gvalue);
        }
    }
}
